package cn.panda.edu.service;

import cn.panda.edu.model.EnrollStudents;
import com.github.pagehelper.PageInfo;

public interface EnrollStudentsService {
	/**
	 * 
	* @Title: deleteByPrimaryKey 
	* @Description: TODO(通过主键删除) 
	* @param @param enrollId
	* @param @return  
	* @return int
	 */
    int deleteByPrimaryKey(Integer enrollId);

    /**
     * 
    * @Title: insert 
    * @Description: TODO(插入) 
    * @param @param record
    * @param @return  
    * @return int
     */
    int insert(EnrollStudents record);

    /**
     * 
    * @Title: insertSelective 
    * @Description: TODO(动态插入) 
    * @param @param record
    * @param @return  
    * @return int
     */
    int insertSelective(EnrollStudents record);

    /**
     * 
    * @Title: selectByPrimaryKey 
    * @Description: TODO(通过enrollId 查找) 
    * @param @param enrollId
    * @param @return  
    * @return EnrollStudents
     */
    EnrollStudents selectByPrimaryKey(Integer enrollId);

    /**
     * 
    * @Title: updateByPrimaryKeySelective 
    * @Description: TODO(动态 更新) 
    * @param @param record
    * @param @return  
    * @return int
     */
    int updateByPrimaryKeySelective(EnrollStudents record);

    /**
     * 
    * @Title: updateByPrimaryKey 
    * @Description: TODO(更新) 
    * @param @param record
    * @param @return  
    * @return int
     */
    int updateByPrimaryKey(EnrollStudents record);
    
    /**
     * 
    * @Title: selectByPageAndSelective 
    * @Description: TODO(根据专业名称进行模糊查询并分页) 
    * @param majorName
    * @param pageIndex
    * @param pageSize
    * @return  
    * PageInfo<EnrollStudents>
     */
    PageInfo<EnrollStudents> selectByPageAndSelective(String majorName, int pageIndex, int pageSize);
}
